package it.canraid.texthere;

import java.io.File;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import android.location.Location;
import android.os.Environment;

import de.mindpipe.android.logging.log4j.LogConfigurator;

public final class Cparams{
	public static final String PATH_N_FILE_LOG=Environment.getExternalStorageDirectory() + File.separator + "TextHere" + File.separator + "logs" + File.separator + "log.txt";
	public static final String URL_PATH="http://www.canraid.it/texthere/server_json.php";
	public static final int TIMEOUT_CONNECTION_MS=10000;
	public static final Level LEVEL=Level.DEBUG;
	public static final int HANDLER_POSITION = 0;
	public static final int HANDLER_TEXT_INFO = 1;
	public static final int HANDLER_RESPONSE_JSON =2;
	public static final float METER_THRESHOLD_POSITION=50;
	public static final int LOCKED_CAMERA_TYPE=0;
	public static final int FREE_CAMERA_TYPE=1;
	public static final int MIN_REFRESH_POSITION=30 *1000;
	public static final int LEFT_FROM_CENTER_TYPE=0;
	public static final int NORTH_FROM_CENTER_TYPE=1;
	public static final int RIGHT_FROM_CENTER_TYPE=2;
	public static final int SOUTH_FROM_CENTER_TYPE=3;
	public static final float TILT=45;
	public static final float DEFAULT_ZOOM=17;
	public static final float INIT_ZOOM=13;
	public static final int METER_90PX_10LEVEL=8000;
	public static final float COEFF_MARGIN_RECT_BING=0.8f;
	public static final int BIG_LITTLE_ENDIAN_TEST=1234567890;
	public static final int YAH_WIDTH=26;
	public static final int YAH_HEIGHT=16;
	public static final float YAH_CHAR=10f;
	public static final int YAH_RADIUS=10;
	public static final int YAH_SMALL_RADIUS=1;
	public static final int MS_AT_METER = 1000/300; //(300m al secondo)
	public static final String NTW_CONN_TIMEOUT_001="001-Connection Timeout";
	public static final String INTERNAL_NTW_002="002-Internal Error: ";
	public static final String INTERNAL_JSON_201="201-Internal Error: JSON message decoding is failed: ";
	public static final String INTERNAL_EXCEPTION_202="202-Internal Exception: ";
	public static final String INTERNAL_JSON_203="203-Internal Exception: Outcome result unknown. ";
	public static final String SHARED_PREF_LOGIN="login";
	public static final String SHARED_PREF_PSW_MD5="password_md5";
	public static final int LOGIN_WITHOUT_CODE= 1;
	public static final int LOGIN_WITH_OPTIONAL_CODE= 2;
	public static final int LOGIN_WITH_CODE= 3;
	public static final int LOGIN_CODE_AS_LAST_TIME= 4;
	
	@Deprecated
	public static final double METER_RADIUS_EQUATOR=6372795.477598;
}
